﻿using ACC.Extensions.ClientBusiness;
using MahApps.Metro.Controls;
using System;
using System.Windows;
using System.Windows.Input;

namespace ACC.Extensions.PCClient.View
{
    /// <summary>
    /// Interaction logic for AboutWnd.xaml
    /// </summary>
    public partial class AboutWnd : MetroWindow 
    {
        public AboutWnd()
        {
            InitializeComponent();
            this.Owner = Application.Current.MainWindow;
        }

        private void TextBlock_MouseDown(object sender, MouseButtonEventArgs e)
        {
            System.Diagnostics.Process.Start("http://www.iplant.com.cn");
        }

        private void MetroWindow_Activated(object sender, EventArgs e)
        {
            UISession.IsWndActivated = this.IsActive;
        }

        private void MetroWindow_Deactivated(object sender, EventArgs e)
        {
            UISession.IsWndActivated = this.IsActive;
        }
    }
}
